<?php session_start();
/**
* @package		ReservatieComponent voor ouderavonden van Atheneum Alicebourg Lanaken.
* @copyright	Copyright (C) 2008 Kristof Beckers. All rights reserved.
* @Version		0.1
* @license		GNU/GPL, see LICENSE.php
**/
?>

<head>
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
</head>
<?php 
include ("../../include/config.php");
require_once ("../../include/db.php");
include ("../../include/header.php");

if(isset($_SESSION['myusername'])){
	if ($_SESSION['admin'] == "$adminid") {

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<link rel="stylesheet" href="../../css/template_css.css" type="text/css"/> 
<title></title>
</head>

<body>
<div align="center"><img src="<?php echo "../$logo" ; ?>" /><br><br />
<a href="../index.php"/><img src="<?php echo "../$home" ; ?>" border="0"/></a><br /><br />



<?php
$startuur = $_POST['startuur'];
$einduur = $_POST['einduur'];
$sessieduur = $_POST['sessieduur'];
$klasdirectie = $_POST['klasdirectie'];
$datum = $_POST['datum'];

$query = "INSERT INTO $tbparam ( Beginuur , Einduur , Sessieduur , Klasdirectie , datum )

VALUES ( '$startuur' , '$einduur' , '$sessieduur' , '$klasdirectie' , '$datum')";

echo "
		Alles is toegevoegd aan de database.<br><br>
		<a href='index.php'>Ga verder</a></p>";

mysql_query($query) or die(mysql_error());


mysql_close($conn);
}}
else {
header("location:../index.php");
}
?>
</div>
</body>